import Layout from 'src/layout'

export default {
  path: '/product',
  component: Layout,
  redirect: '/product/appProduct',
  name: 'Product',
  meta: {
    title: '产品',
    icon: 'dashboard'
  },
  children: [
    {
      path: 'appProduct',
      name: 'AppProduct',
      component: () => import('src/views/product/AppProduct.vue'),
      meta: {title: 'App产品'}
    },
    {
      path: 'addProduct',
      name: 'AddProduct',
      component: () => import('src/views/product/AddProduct.vue'),
      meta: {title: '添加App产品'}
    },
    {
      path: 'editProduct',
      name: 'EditProduct',
      component: () => import('src/views/product/EditProduct.vue'),
      meta: {title: '编辑App产品'}
    },
    {
      path: 'appRackingProduct',
      name: 'AppRackingProduct',
      component: () => import('src/views/product/AppRackingProduct.vue'),
      meta: {title: 'App上架产品'}
    },
    {
      path: 'appSoldoutProduct',
      name: 'AppSoldoutProduct',
      component: () => import('src/views/product/AppSoldoutProduct.vue'),
      meta: {title: 'App下架产品'}
    },
    {
      path: 'appProductRecycle',
      name: 'AppProductRecycle',
      component: () => import('src/views/product/AppProductRecycle.vue'),
      meta: {title: 'App产品回收站'}
    },
    {
      path: 'appProductPreRegTest',
      name: 'AppProductPreRegTest',
      component: () => import('src/views/product/AppProductPreRegTest.vue'),
      meta: {title: '产品预注册测试'}
    }
  ]
}
